#include "FactoryPersistent.h"

FactoryPersistent::FactoryPersistent()
{
}

FactoryPersistent::~FactoryPersistent()
{
}

Persistent* FactoryPersistent::getObjectFromTable(std::string name){
	//lo puse en plural    Cambio aqui!
	if (name == "stations"){
		Station *station = new Station();
		return (Persistent*)station;
	}
	if (name == "cloudsLayer"){
			CloudLayer *cloud = new CloudLayer();
			return (Persistent*)cloud;
		}
	if (name == "conditionAtm"){
			ConditionAtm *cond = new ConditionAtm();
			return (Persistent*)cond;
		}
	if (name == "sampleSounding"){
			SampleSounding *station = new SampleSounding();
			return (Persistent*)station;
		}
	if (name == "sampleSourcesafe"){
		SampleSourcesafe *station = new SampleSourcesafe();
		return (Persistent*)station;
	}
	return NULL;
}


